<?xml version="1.0" encoding="UTF-8"?>
<jsp:root version="1.2" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:ui="http://www.sun.com/web/ui">
    <jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
    <f:view>
        <ui:page binding="#{editarVariableCap.page1}" id="page1">
            <ui:html binding="#{editarVariableCap.html1}" id="html1">
                <ui:head binding="#{editarVariableCap.head1}" id="head1">
                    <ui:link binding="#{editarVariableCap.link1}" id="link1" url="/resources/stylesheet.css"/>
                </ui:head>
                <ui:body binding="#{editarVariableCap.body1}" id="body1" onLoad="displayAlertBox()" style="-rave-layout: grid">
                    <ui:form binding="#{editarVariableCap.form1}" id="form1" virtualFormsConfig="VFparaBotones | | groupPanelBotones:botonEnviarACalcula groupPanelBotones:botonEnviarAInterface">
                        <ui:staticText binding="#{editarVariableCap.titulo1}" id="titulo1"
                            style="color: rgb(108, 154, 154); font-family: 'Times New Roman','Times',serif; font-size: 18px; left: 48px; top: 120px; position: absolute" text="Editar variable"/>
                        <ui:button action="#{editarVariableCap.guardarButton_action}" binding="#{editarVariableCap.guardarButton}" id="guardarButton"
                            mini="true" primary="true" style="left: 143px; top: 168px; position: absolute; width: 72px" tabIndex="17" text="Guardar"/>
                        <ui:textField binding="#{editarVariableCap.codigoTextField}" disabled="true" id="codigoTextField" maxLength="20"
                            style="left: 192px; top: 264px; position: absolute; width: 144px" tabIndex="1" valueChangeListener="#{editarVariableCap.codigoTextField_processValueChange}"/>
                        <ui:staticText binding="#{editarVariableCap.maximoCaracteres20StaticText}" id="maximoCaracteres20StaticText"
                            style="font-size: 10px; left: 48px; top: 288px; position: absolute" text="Maximo 20 carateres"/>
                        <ui:label binding="#{editarVariableCap.codigoLabel}" for="codigoTextField" id="codigoLabel" requiredIndicator="true"
                            style="left: 48px; top: 264px; position: absolute" text="Codigo"/>
                        <ui:textArea binding="#{editarVariableCap.descripcionTextArea}" id="descripcionTextArea"
                            style="height: 48px; left: 192px; top: 312px; position: absolute; width: 264px" tabIndex="2"/>
                        <ui:label binding="#{editarVariableCap.descripcionLabel1}" for="descripcionTextArea" id="descripcionLabel1" requiredIndicator="true"
                            style="left: 48px; top: 312px; position: absolute" text="Descripcion"/>
                        <ui:staticText binding="#{editarVariableCap.maxCaracters100StaticText1}" id="maxCaracters100StaticText1"
                            style="font-size: 10px; left: 48px; top: 336px; position: absolute" text="Maximo 100 carateres"/>
                        <ui:label binding="#{editarVariableCap.areaSolicitudLabel1}" id="areaSolicitudLabel1" style="left: 48px; top: 408px; position: absolute" text="Area de solicitud"/>
                        <ui:label binding="#{editarVariableCap.definirRestriccionLabel1}" id="definirRestriccionLabel1"
                            style="left: 48px; top: 480px; position: absolute" text="Definir Restriccion"/>
                        <ui:label binding="#{editarVariableCap.label1}" id="label1"
                            style="height: 22px; left: 48px; top: 456px; position: absolute; width: 118px" text="Clase de variable ?"/>
                        <ui:dropDown binding="#{editarVariableCap.areaSolicitudDropDown}" id="areaSolicitudDropDown"
                            items="#{editarVariableCap.sct0020DataProviderCrearVariable.options['SCT0020.CDGOAREASLCTUD,SCT0020.CDGOANDDSCRPCION']}"
                            style="font-size: 10px; left: 192px; top: 408px; position: absolute; width: 384px" tabIndex="4"/>
                        <ui:label binding="#{editarVariableCap.tipoDatoLabel1}" id="tipoDatoLabel1" style="left: 48px; top: 432px; position: absolute" text="Tipo dato"/>
                        <ui:label binding="#{editarVariableCap.exigibleLabel}" id="exigibleLabel" style="left: 48px; top: 384px; position: absolute" text="Exigible"/>
                        <ui:label binding="#{editarVariableCap.longiotudLabel}" for="longitudDeCapturaTextField" id="longiotudLabel"
                            style="left: 48px; top: 504px; position: absolute" text="Longitud de captura"/>
                        <ui:textField binding="#{editarVariableCap.longitudDeCapturaTextField}" id="longitudDeCapturaTextField"
                            style="left: 192px; top: 504px; position: absolute; width: 48px" tabIndex="9"/>
                        <ui:label binding="#{editarVariableCap.valorMinimoLabel}" id="valorMinimoLabel" style="left: 48px; top: 504px; position: absolute" text="Valor Minimo"/>
                        <ui:textField binding="#{editarVariableCap.valorMinimoTextField}" id="valorMinimoTextField"
                            style="left: 192px; top: 504px; position: absolute; width: 120px" tabIndex="10"/>
                        <ui:label binding="#{editarVariableCap.valorMaximoLabel}" id="valorMaximoLabel" style="left: 48px; top: 528px; position: absolute" text="Valor Maximo"/>
                        <ui:textField binding="#{editarVariableCap.valorMaximoTextField}" id="valorMaximoTextField"
                            style="left: 192px; top: 528px; position: absolute; width: 120px" tabIndex="11"/>
                        <ui:checkbox binding="#{editarVariableCap.fechaActualLimiteCheckBox}" id="fechaActualLimiteCheckBox" label="Valor Maximo: Fecha actual"
                            onClick="common_timeoutSubmitForm(this.form, 'fechaActualLimiteCheckBox');" style="left: 48px; top: 552px; position: absolute"
                            tabIndex="6" valueChangeListener="#{editarVariableCap.fechaActualLimiteCheckBox_processValueChange}"/>
                        <ui:panelGroup binding="#{editarVariableCap.groupPanelContenedorTotalLista}" id="groupPanelContenedorTotalLista" style="left: 48px; top: 528px; position: absolute; z-index: 501">
                            <h:panelGrid binding="#{editarVariableCap.gridPanelContenedorParaLista1}" id="gridPanelContenedorParaLista1">
                                <ui:label binding="#{editarVariableCap.defListaValoresLabel1}" id="defListaValoresLabel1"
                                    style="color: rgb(124, 162, 162); font-family: 'Geneva','Arial','Helvetica',sans-serif; font-size: 18px" text="Definicion de lista de valores"/>
                                <h:panelGrid binding="#{editarVariableCap.gridPanelParaTextFieldsYBotnesLista1}" columns="3" id="gridPanelParaTextFieldsYBotnesLista1">
                                    <ui:label binding="#{editarVariableCap.descripcionLabel2}" for="descripcionValorCapturadoTextField" id="descripcionLabel2"
                                        requiredIndicator="true" text="Descripcion :"/>
                                    <ui:textField binding="#{editarVariableCap.descripcionValorCapturadoTextField}" id="descripcionValorCapturadoTextField"
                                        maxLength="30" style="width: 168px" tabIndex="13"/>
                                    <ui:button action="#{editarVariableCap.agregarDatoListaButton_action}"
                                        binding="#{editarVariableCap.agregarDatoListaButton1}" id="agregarDatoListaButton1" mini="true" primary="true"
                                        style="width: 72px" tabIndex="15" text="agregar"/>
                                    <ui:label binding="#{editarVariableCap.datoLabel1}" for="datoValorTextField" id="datoLabel1" requiredIndicator="true" text="Codigo :"/>
                                    <ui:textField binding="#{editarVariableCap.datoValorTextField}" id="datoValorTextField" maxLength="18" style="width: 168px" tabIndex="14"/>
                                    <ui:button action="#{editarVariableCap.eliminarButton_action}" binding="#{editarVariableCap.eliminarButton1}"
                                        id="eliminarButton1" mini="true" primary="true" style="width: 71px" tabIndex="16" text="Eliminar"/>
                                </h:panelGrid>
                                <ui:listbox binding="#{editarVariableCap.listaDeDatosListBox}" id="listaDeDatosListBox" labelLevel="1" labelOnTop="true"
                                    style="font-size: 10px; width: 192px" tabIndex="12" valueChangeListener="#{editarVariableCap.listaDeDatosListBox_processValueChange}"/>
                            </h:panelGrid>
                        </ui:panelGroup>
                        <ui:hiddenField binding="#{editarVariableCap.primeraCargadaHF}" id="primeraCargadaHF"/>
                        <ui:staticText binding="#{editarVariableCap.staticTextExplicacion}" id="staticTextExplicacion"
                            style="font-size: 10px; left: 48px; top: 192px; position: absolute" text="Para convertir esta variable a otro tipo debe hacer click en el boton con el respectivo tipo de variable que desea"/>
                        <ui:panelGroup binding="#{editarVariableCap.groupPanelBotones}" id="groupPanelBotones" style="height: 24px; left: 48px; top: 216px; position: absolute; width: 238px">
                            <ui:label binding="#{editarVariableCap.conviertaLabel}" id="conviertaLabel" text="Convierta a :"/>
                            <ui:button action="#{editarVariableCap.botonEnviarACalcula_action}" binding="#{editarVariableCap.botonEnviarACalcula}"
                                id="botonEnviarACalcula" mini="true" primary="true" style="width: 71px" text="Calculada"/>
                            <ui:button action="#{editarVariableCap.botonEnviarAInterface_action}" binding="#{editarVariableCap.botonEnviarAInterface}"
                                id="botonEnviarAInterface" mini="true" primary="true" style="width: 68px" text="Interface"/>
                        </ui:panelGroup>
                        <ui:alert binding="#{editarVariableCap.alert1}" id="alert1" style="left: 480px; top: 240px; position: absolute"/>
                        <ui:dropDown binding="#{editarVariableCap.definirRestriccionDropDown}" id="definirRestriccionDropDown"
                            items="#{editarVariableCap.definirRestriccionDropDownDefaultOptions.options}"
                            onChange="common_timeoutSubmitForm(this.form, 'definirRestriccionDropDown');"
                            style="font-size: 10px; left: 192px; top: 480px; position: absolute" valueChangeListener="#{editarVariableCap.MIN_current_timestamp_processValueChange}"/>
                        <ui:dropDown binding="#{editarVariableCap.exigibleDropDown}" id="exigibleDropDown"
                            items="#{editarVariableCap.exigibleDropDownDefaultOptions.options}" onChange=""
                            style="font-size: 10px; left: 192px; top: 384px; position: absolute; width: 48px" valueChangeListener="#{editarVariableCap.exigibleDropDown_processValueChange}"/>
                        <ui:dropDown binding="#{editarVariableCap.tipoDatoDropDown}" id="tipoDatoDropDown"
                            items="#{editarVariableCap.tipoDatoDropDownDefaultOptions.options}"
                            onChange="common_timeoutSubmitForm(this.form, 'tipoDatoDropDown');"
                            style="font-size: 10px; left: 192px; top: 432px; position: absolute" valueChangeListener="#{editarVariableCap.tipoDatoDropDown_processValueChange}"/>
                        <ui:dropDown binding="#{editarVariableCap.historicaBasicaDropDown}" id="historicaBasicaDropDown"
                            items="#{editarVariableCap.historicaBasicaDropDownDefaultOptions.options}" style="font-size: 10px; left: 192px; top: 456px; position: absolute"/>
                        <ui:button action="#{editarVariableCap.botonRegresar_action}" binding="#{editarVariableCap.botonRegresar}" id="botonRegresar"
                            mini="true" primary="true" style="left: 239px; top: 168px; position: absolute; width: 71px" text="Regresar"/>
                        <ui:label binding="#{editarVariableCap.relacionadaLabel}" id="relacionadaLabel"
                            style="left: 48px; top: 504px; position: absolute; z-index: 500" text="Lista relacionada?"/>
                        <ui:dropDown binding="#{editarVariableCap.relacionadaDropDown}" id="relacionadaDropDown"
                            items="#{editarVariableCap.relacionadaDropDownDefaultOptions.options}"
                            onChange="common_timeoutSubmitForm(this.form, 'relacionadaDropDown');"
                            style="font-size: 10px; left: 192px; top: 504px; position: absolute; z-index: 500" valueChangeListener="#{editarVariableCap.relacionadaDropDown_processValueChange}"/>
                        <ui:panelGroup binding="#{editarVariableCap.groupPanelEnlaza}" id="groupPanelEnlaza" style="left: 48px; top: 528px; position: absolute; z-index: 499">
                            <h:panelGrid binding="#{editarVariableCap.gridPanelParaEnlazamiento1}" id="gridPanelParaEnlazamiento1" style="height: 96px" width="432">
                                <ui:label binding="#{editarVariableCap.tituloEnlazaLabel1}" id="tituloEnlazaLabel1"
                                    style="color: rgb(124, 162, 162); font-family: 'Geneva','Arial','Helvetica',sans-serif; font-size: 18px" text="Enlazamiento de variables tipo lista"/>
                                <ui:label binding="#{editarVariableCap.explicaEnlazaLabel1}" id="explicaEnlazaLabel1"
                                    style="font-family: 'Arial','Helvetica',sans-serif; font-size: 10px" text="Nota: En la lista encontrara las areas que contienen variables tipo lista"/>
                                <ui:panelGroup binding="#{editarVariableCap.groupPanelVariableOrigen}" id="groupPanelVariableOrigen">
                                    <ui:label binding="#{editarVariableCap.varOrigenLabel1}" id="varOrigenLabel1" text="Area Origen"/>
                                    <ui:dropDown binding="#{editarVariableCap.areaOrigenDropDown}" id="areaOrigenDropDown"
                                        items="#{editarVariableCap.sct0020DPAreaConVarTipoLista.options['CODIGO,NOMBRE']}"
                                        onChange="common_timeoutSubmitForm(this.form, 'groupPanelEnlaza:gridPanelParaEnlazamiento1:groupPanelVariableOrigen1:areaOrigenDropDown');"
                                        style="font-size: 10px; width: 240px" valueChangeListener="#{editarVariableCap.areaOrigenDropDown_processValueChange}"/>
                                </ui:panelGroup>
                                <ui:panelGroup binding="#{editarVariableCap.groupPanelDentroEnlazaGP}" id="groupPanelDentroEnlazaGP">
                                    <ui:label binding="#{editarVariableCap.variableCargueDatosLabel}" id="variableCargueDatosLabel" text="Variable Para cargue de datos : "/>
                                    <ui:staticText binding="#{editarVariableCap.staticTextVarCargueDatos}" id="staticTextVarCargueDatos"/>
                                </ui:panelGroup>
                                <ui:listbox binding="#{editarVariableCap.listBoxvariableOrigen}" id="listBoxvariableOrigen"
                                    items="#{editarVariableCap.sct0001DataProvider.options['CDGOVRBLE,NMBREVRBLE']}" labelLevel="1" labelOnTop="true" style="font-size: 10px; width: 216px"/>
                            </h:panelGrid>
                        </ui:panelGroup>
                        <ui:hiddenField binding="#{editarVariableCap.restriccionOriginalHF}" id="restriccionOriginalHF"/>
                        <ui:hiddenField binding="#{editarVariableCap.areaSolOriginalHF}" id="areaSolOriginalHF"/>
                        <ui:pageAlert binding="#{editarVariableCap.pageAlert1}" id="pageAlert1" style="left: 456px; top: 120px; position: absolute"
                            title="Advertencia" type="warning" visible="false"/>
                        <ui:checkbox binding="#{editarVariableCap.checkboxLog}" id="checkboxLog" label="Mantener log de esta variable" style="font-size: 11px; left: 48px; top: 360px; position: absolute"/>
                        <div style="left: 0px; top: 0px; position: absolute">
                            <jsp:include page="encab1.jspf"/>
                        </div>
                        <ui:hiddenField binding="#{editarVariableCap.controlPopUpHF}" id="controlPopUpHF"/>
                        <ui:button action="#{editarVariableCap.button1_action}" binding="#{editarVariableCap.button1}" id="button1" immediate="true" mini="true"
                            primary="true" style="left: 47px; top: 168px; position: absolute; width: 72px" text="Cerrar"/>
                    </ui:form>
                </ui:body>
                <ui:script>
                      function displayAlertBox(){
                         var afterSubmit = document.getElementById("form1:controlPopUpHF").value;
                         if (afterSubmit=="listadoDeVariables"){
                                document.getElementById("form1:controlPopUpHF").value="";
                                var respuesta = alert("Variable editada exitosamente");
                                document.getElementById("form1:primeraCargadaHF").value=null;
                                window.location.href=("listadoDeVariables.jsp");
                         }
                         if (afterSubmit=="creaDisenoSol"){
                                document.getElementById("form1:controlPopUpHF").value="";
                                var respuesta = alert("Variable editada exitosamente");
                                document.getElementById("form1:primeraCargadaHF").value=null;
                                window.location.href=("creaDisenoSol.jsp");
                         }
                }
                </ui:script>
            </ui:html>
        </ui:page>
    </f:view>
</jsp:root>
